﻿package mortal.game.view.loginNotice
{
    import com.mui.utils.*;
    import extend.language.*;
    import mortal.component.window.*;
    import mortal.mvc.interfaces.*;

    public class LoginNoticeWindow extends BaseWindow
    {
        private var _loginNotice:LoginNoticePanel;

        public function LoginNoticeWindow(param1:ILayer = null)
        {
            super(param1);
            setSize(736, 500);
            title = Language.getString(11805);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._loginNotice = UICompomentPool.getUICompoment(LoginNoticePanel, 724, 464);
            this._loginNotice.x = 9;
            this._loginNotice.y = 35;
            this.addChild(this._loginNotice);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            this._loginNotice.dispose();
            this._loginNotice = null;
            super.disposeImpl();
            return;
        }// end function

        public function updataVersion(param1:String, param2:Array, param3:Array) : void
        {
            if (!this._loginNotice)
            {
                this._loginNotice = new LoginNoticePanel(715, 451);
            }
            this._loginNotice.updateData(param2, param3);
            return;
        }// end function

    }
}
